package com.hdw.common.vo;

import java.io.Serializable;
import java.util.Date;

public class BaseMsg implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long idMsg;

    private String cd;

    private String na;

    /**
     * ERROR WARING INFO
     */	
    private String euTp;

    private String msg;

    private Boolean fgHand;

    private String naEmpHand;

    private Date dtHand;

    private String des;

    private Date dtSysCre;

    public Long getIdMsg() {
        return idMsg;
    }

    public void setIdMsg(Long idMsg) {
        this.idMsg = idMsg;
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd == null ? null : cd.trim();
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na == null ? null : na.trim();
    }

    public String getEuTp() {
        return euTp;
    }

    public void setEuTp(String euTp) {
        this.euTp = euTp == null ? null : euTp.trim();
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg == null ? null : msg.trim();
    }

    public Boolean getFgHand() {
        return fgHand;
    }

    public void setFgHand(Boolean fgHand) {
        this.fgHand = fgHand;
    }

    public String getNaEmpHand() {
        return naEmpHand;
    }

    public void setNaEmpHand(String naEmpHand) {
        this.naEmpHand = naEmpHand == null ? null : naEmpHand.trim();
    }

    public Date getDtHand() {
        return dtHand;
    }

    public void setDtHand(Date dtHand) {
        this.dtHand = dtHand;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des == null ? null : des.trim();
    }

    public Date getDtSysCre() {
        return dtSysCre;
    }

    public void setDtSysCre(Date dtSysCre) {
        this.dtSysCre = dtSysCre;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseMsg other = (BaseMsg) that;
        return (this.getIdMsg() == null ? other.getIdMsg() == null : this.getIdMsg().equals(other.getIdMsg()))
            && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd()))
            && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa()))
            && (this.getEuTp() == null ? other.getEuTp() == null : this.getEuTp().equals(other.getEuTp()))
            && (this.getMsg() == null ? other.getMsg() == null : this.getMsg().equals(other.getMsg()))
            && (this.getFgHand() == null ? other.getFgHand() == null : this.getFgHand().equals(other.getFgHand()))
            && (this.getNaEmpHand() == null ? other.getNaEmpHand() == null : this.getNaEmpHand().equals(other.getNaEmpHand()))
            && (this.getDtHand() == null ? other.getDtHand() == null : this.getDtHand().equals(other.getDtHand()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()))
            && (this.getDtSysCre() == null ? other.getDtSysCre() == null : this.getDtSysCre().equals(other.getDtSysCre()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdMsg() == null) ? 0 : getIdMsg().hashCode());
        result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getEuTp() == null) ? 0 : getEuTp().hashCode());
        result = prime * result + ((getMsg() == null) ? 0 : getMsg().hashCode());
        result = prime * result + ((getFgHand() == null) ? 0 : getFgHand().hashCode());
        result = prime * result + ((getNaEmpHand() == null) ? 0 : getNaEmpHand().hashCode());
        result = prime * result + ((getDtHand() == null) ? 0 : getDtHand().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        result = prime * result + ((getDtSysCre() == null) ? 0 : getDtSysCre().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idMsg=").append(idMsg);
        sb.append(", cd=").append(cd);
        sb.append(", na=").append(na);
        sb.append(", euTp=").append(euTp);
        sb.append(", msg=").append(msg);
        sb.append(", fgHand=").append(fgHand);
        sb.append(", naEmpHand=").append(naEmpHand);
        sb.append(", dtHand=").append(dtHand);
        sb.append(", des=").append(des);
        sb.append(", dtSysCre=").append(dtSysCre);
        sb.append("]");
        return sb.toString();
    }
}